projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ad1b9
)
babl.db: if git hash has changed, drop cache
author
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 19:47:39 +0000
(20:47 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 19:47:39 +0000
(20:47 +0100)
babl/babl.c
patch
|
blob
|
history
diff --git
a/babl/babl.c
b/babl/babl.c
index 319977794edd8b29f31e7a83a784c345b0786501..22c104cf6d4c0f06705e56aeb2bb37cc20ffe93d 100644
(file)
--- a/
babl/babl.c
+++ b/
babl/babl.c
@@
-296,6
+296,12
@@
static void babl_init_db (const char *path)
babl=NULL;
break;
case '#':
+ /* if babl has changed in git .. drop whole cache */
+ if (strcmp ( &token[1], BABL_GIT_VERSION))
+ {
+ free (contents);
+ return;
+ }
break;
case '\t':
if (strchr (token, '='))